package com.obsidian.content.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.obsidian.content.entity.CourseBase;
import com.obsidian.content.model.CourseBaseParam;
import com.obsidian.content.model.PageParams;
import com.obsidian.content.model.PageResult;
import com.obsidian.content.model.dto.QueryCourseParamsDto;

/**
 * <p>
 * 课程基本信息 服务类
 * </p>
 *
 * @author jianghao
 * @since 2023-02-06
 */
public interface ICourseBaseService extends IService<CourseBase> {

    /**
     * 课程查询
     *
     * @param params               params
     * @param queryCourseParamsDto queryCourseParamsDto
     * @return PageResult<CourseBase>
     */
    PageResult<CourseBase> queryCourseBaseList(PageParams params, QueryCourseParamsDto queryCourseParamsDto);

    /**
     * 分页查询
     *
     * @return Page<CourseBase>
     */
    Page<CourseBase> lisePage(CourseBaseParam courseBaseParam, int currentPage, int currentSize);

}
